﻿using LuDragon.Data.Config;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;

namespace LuDragon.Web.App_Start
{
    public class AppInit
    {
        /// <summary>
        /// 初始化系统配置
        /// </summary>
        public static void InitConfig()
        {
            AppConfig.WriteDbContext = ConfigurationManager.ConnectionStrings["WriteDbContext"]?.ToString();
            AppConfig.ReadDbContext = ConfigurationManager.ConnectionStrings["ReadDbContext"]?.ToString();
        }
    }
}